openFile

fun KiteDoc.openFile(path: String, password: String = "", epubSettings: EpubSettings = EpubSettings()): KiteDocument

Reads the file at path and opens it as whichever format it is.

Throws

when the file cannot be read, or is neither a PDF nor an EPUB.